package com.dream.service.recommender.edm.enums;

/**
 * Created by kangd on 2016/9/26.
 */
public enum DeployType {

    PRODUCT(0,"rec.motif.me"),
    BETA(1,"54.222.233.255"),
    TEST(2,"192.168.0.230");

    private int id;
    private String domain;

    private DeployType(int id,String domain){
        this.id = id;
        this.domain = domain;
    }

    public static DeployType getDeployType(int id){
        switch (id){
            case 0:
                return DeployType.PRODUCT;
            case 1:
                return DeployType.BETA;
            case 2:
                return DeployType.TEST;
            default:
                return DeployType.PRODUCT;
        }
    }

    public int getId() {
        return id;
    }

    public String getDomain() {
        return domain;
    }
}
